home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / Demos_Demo folder / Demos_Info folder / Demos™ Demonstration / Examples / Matrix Example < prev    next >
Text File  |  1993-11-04  |  2KB  |  98 lines

  1. { From user A Lumens, Project Matrixexample at Thu, Nov 4, 1993 3:53 PM}
  2.  
  3.  
  4. { System Variables with non-default values: }
  5. Numberwidth := 7
  6. Samplesize := 200
  7. Verbosity := 18
  8. Sampletype := 1
  9. Typechecking := 1
  10. Checking := 1
  11. Saveoptions := 2
  12. Savevalues := 0
  13.  
  14.  
  15. { Non-default Time SysVar value: }
  16. Time := [0]
  17.  
  18. Project Matrixexample
  19. Title: Matrix Example
  20. Description: This model shows how to set up and use the new matrix functions in Demos.
  21. Author: A Lumens
  22. Date: Wed, Jan 20, 1993 5:15 PM
  23. Saveauthor: A Lumens
  24. Savedate: Thu, Nov 4, 1993 3:53 PM
  25. Diagstate: 1,50,63,422,234,1
  26. Windstate: 1,120,213
  27. Fileinfo: 0,-2,23541,Project Matrixexample,Matrix Example
  28. Getresource 
  29.  
  30. Index I
  31. Title: i
  32. Description: An index defined as a list of three items, the same number of items as Index j.
  33. Definition: [1 2 3]
  34. Location: 48,88
  35. Nodesize: 24,12
  36.  
  37. Index J
  38. Title: j
  39. Description: An index defined as a list of three string items, the same number of items as Index i.
  40. Definition: ['a', 'b', 'c']
  41. Location: 48,120
  42. Nodesize: 24,12
  43. Valuestate: 1,72,82,416,303,0,MIDM
  44.  
  45. Chance A
  46. Title: Original~
  47. Matrix
  48. Description: An "original" matrix: a bunch of random numbers
  49. Definition: Table(I,J)(
  50. 4,2,3,
  51. 1,5,2,
  52. 2,3,7
  53. )
  54. Location: 144,104
  55. Nodesize: 48,20
  56. Valuestate: 1,18,216,304,140,0,MIDM
  57. Reformval:           [I         ,J         ]
  58.  
  59. Chance Transposed
  60. Title: Transposed
  61. Description: Transposes A by switching values along i and j dimensions
  62. Definition: Transpose( A, i, j )
  63. Location: 272,32
  64. Nodesize: 48,20
  65. Valuestate: 1,431,42,304,140,0,MIDM
  66. Reformval:           [I         ,J         ]
  67.  
  68. Chance Inverted
  69. Title: Inverted
  70. Description: Inverts A along i and j
  71. Definition: Invert( A, i, j )
  72. Location: 272,80
  73. Nodesize: 48,20
  74. Valuestate: 1,431,204,304,140,0,MIDM
  75. Reformval:           [I         ,J         ]
  76.  
  77. Chance Determinan
  78. Title: Determinant
  79. Description: Calculates the determinant of A across i and j
  80. Definition: Determinant( A, i, j )
  81. Location: 272,128
  82. Nodesize: 48,20
  83. Valuestate: 1,431,367,224,138,0,MIDM
  84.  
  85. Chance Decomposed
  86. Title: Decomposed
  87. Description: This performs decomposition of A along i and j.~
  88. ~
  89. Note: this is a variant of Choleski decomposition, so it is not a true LU decomposed matrix.  It switches rows and includes values from both upper and lower decomposed matrixes.
  90. Definition: Decompose( A, i, j )
  91. Location: 272,176
  92. Nodesize: 48,20
  93. Windstate: 1,72,49
  94. Valuestate: 1,122,367,304,140,0,MIDM
  95. Reformval:           [I         ,J         ]
  96.  
  97. Close Matrixexample
  98.